package app.modules.infrastructure.lov.dto.web;

import io.swagger.v3.oas.annotations.media.Schema;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @author mh.z
 */
@Schema(title = "值集的更新信息")
public class WebValueSetUpdateDTO {

    @Schema(title = "记录ID")
    private Long id;

    @NotEmpty
    @Length(max = 50)
    @Schema(title = "代码")
    private String valueSetCode;

    @NotEmpty
    @Length(max = 100)
    @Schema(title = "名称")
    private String valueSetName;

    @Length(max = 200)
    @Schema(title = "描述")
    private String valueSetDesc;

    @Schema(title = "启用标志")
    private Boolean enableFlag;

    @Schema(title = "版本号")
    private Integer versionNumber;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getValueSetCode() {
        return valueSetCode;
    }

    public void setValueSetCode(String valueSetCode) {
        this.valueSetCode = valueSetCode;
    }

    public String getValueSetName() {
        return valueSetName;
    }

    public void setValueSetName(String valueSetName) {
        this.valueSetName = valueSetName;
    }

    public String getValueSetDesc() {
        return valueSetDesc;
    }

    public void setValueSetDesc(String valueSetDesc) {
        this.valueSetDesc = valueSetDesc;
    }

    public Boolean getEnableFlag() {
        return enableFlag;
    }

    public void setEnableFlag(Boolean enableFlag) {
        this.enableFlag = enableFlag;
    }

    public Integer getVersionNumber() {
        return versionNumber;
    }

    public void setVersionNumber(Integer versionNumber) {
        this.versionNumber = versionNumber;
    }

}
